package cn.jxau.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.jxau.auth.annotation.AccessControl;
import cn.jxau.auth.annotation.PrivilegeAnnotation;

/**
 * 直接跳到所请求的的jsp页面
 * @author licho
 *
 */
@Controller
@RequestMapping("/jsp")
public class JspForwardController extends BaseController{
	@RequestMapping("/login")
	public String login(){
		return "login";
	}
	@RequestMapping("/register")
	public String register(){
		return "register";
	}
	@PrivilegeAnnotation(AccessControl.USER)//用户级权限
	@RequestMapping("/detail")
	public String detail(){
		return "detail";
	}
	@PrivilegeAnnotation(AccessControl.USER)//用户级权限
	@RequestMapping("/uparticle")
	public String uparticle(){
		return "uparticle";
	}
	@PrivilegeAnnotation(AccessControl.USER)//用户级权限
	@RequestMapping("person")
	public String person(){
		return "person";
	}
	@PrivilegeAnnotation(AccessControl.USER)//用户级权限
	@RequestMapping("collection")
	public String collection(){
		return "collection";
	}
	@PrivilegeAnnotation(AccessControl.USER)//用户级权限
	@RequestMapping("/articlemanager")
	public String articlemanager(){
		return "articlemanager";
	}
}
